'''
Created on Jun 19, 2012

@author: mupet
'''

class LogHolder(object):
    '''
    classdocs
    '''

    log = []

    @staticmethod
    def storeLogLine(logLine):
        LogHolder.log.append(logLine)
        
    @staticmethod
    def getLog():
        return LogHolder.log
    
    @staticmethod
    def getLastLogLines(amount):
        if amount > len(LogHolder.log):
            return LogHolder.log[::-1]
        return LogHolder.log[(0-amount)::][::-1]